package com.gsn.poker.play;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
import com.badlogic.gdx.scenes.scene2d.Group;
import com.badlogic.gdx.scenes.scene2d.ui.ClickListener;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.ImageButton;
import com.badlogic.gdx.scenes.scene2d.ui.Label;
import com.gsn.desktop.engine.ActorUtility;
import com.gsn.engine.myplay.GsnGame;
import com.gsn.poker.asset.PokerTexture;

public class ImgTextGroup extends Group {
	Label label;
	Image btn;
	public int size;
	public ImgTextGroup(Image btn) {
		transform = GsnGame.transform;
		addActor(btn);
		this.btn = btn;
		this.width = btn.width;
		this.height = btn.height;
		label = new Label("", new Label.LabelStyle(PokerTexture.inst().fontLarge, new Color(1, 1, 1, 0.7f)));
		ActorUtility.setRatio(label, 0.5f, 0.5f, width * 0.75f , height / 2);
		addActor(label);
	}
		

	public void setClickListener(ClickListener listen) {
	//	btn.setClickListener(listen);
	}
	
	public void updateText(String s){
		label.setText(s);
	}

}
